package com.yan.job;

import com.yan.domainjob.sanJiao;

public class Test4 {
    public static void main(String[] args) {
        sanJiao sanJiao1 = new sanJiao(3,4,5);
        sanJiao sanJiao2 = new sanJiao(2,2,3);
        double area = sanJiao1.getArea();
        System.out.println(area);
        double piremeter = sanJiao1.getPiremeter();
        System.out.println(piremeter);
        double area1 = sanJiao2.getArea();
        System.out.println(area1);
        double piremeter1 = sanJiao2.getPiremeter();
        System.out.println(piremeter1);
    }
}
